-- GENERATED SPELL FOR [Stonevault Brawler] --


function spell0_4855(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_4855', 632, 1)
end

function spell1_4855(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4855', 535, 1)
end

function Sorts_4855(pUnit, Event)
local choix_sorts_4855 = math.random(0, 1)
if choix_sorts_4855 == 0 then
pUnit:RegisterEvent('spell0_4855', 1, 1)
end
if choix_sorts_4855 == 1 then
pUnit:RegisterEvent('spell1_4855', 1, 1)
end
end

function mob4855_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4855', math.random(1500, 3000), 1)
end

function mob4855_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4855_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4855_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4855, 1, 'mob4855_Action')
RegisterUnitEvent(4855, 2, 'mob4855_Leave')
RegisterUnitEvent(4855, 3, 'mob4855_Kill')
RegisterUnitEvent(4855, 4, 'mob4855_Die')
